package com.zzxy.service.impl;

import com.zzxy.dao.impl.TeacherDaoImpl;
import com.zzxy.service.ITeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

//@Component("teacherService")
@Service
public class TeacherServiceImpl implements ITeacherService {
    @Autowired
    private TeacherDaoImpl teacherDao;

   /* public TeacherDaoImpl getTeacherDao() {
        return teacherDao;
    }

    public void setTeacherDao(TeacherDaoImpl teacherDao) {
        this.teacherDao = teacherDao;
    }*/

    //用户访问 .../teacher/odd
//mapping controller 的 addTeacher
    @Override
    public void addTeacher() {

        //System.out.println("add teacher success ...");
        // all biz : crud
        // check before
        teacherDao.addTeacher();
        // after
    }
    public void deleteTeacher(){

    }
    public void updateTeacher(){

    }
}
